using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Import Geodatabase Configuration Keywords</para>
    /// <para>Defines data storage parameters for an enterprise geodatabase by importing a file containing configuration keywords, parameters, and values.</para>
    /// <para>通过导入包含配置关键字、参数和值的文件来定义企业级地理数据库的数据存储参数。</para>
    /// </summary>    
    [DisplayName("Import Geodatabase Configuration Keywords")]
    public class ImportGeodatabaseConfigurationKeywords : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportGeodatabaseConfigurationKeywords()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_database">
        /// <para>Input Database Connection</para>
        /// <para>The connection file for the enterprise geodatabase to which you want to import the configuration file. You must connect as the geodatabase administrator.</para>
        /// <para>要将配置文件导入到的企业级地理数据库的连接文件。您必须以地理数据库管理员身份进行连接。</para>
        /// </param>
        /// <param name="_in_file">
        /// <para>Input File</para>
        /// <para>The path to and name of the ASCII text file containing configuration keywords, parameters, and values to import.</para>
        /// <para>包含要导入的配置关键字、参数和值的 ASCII 文本文件的路径和名称。</para>
        /// </param>
        public ImportGeodatabaseConfigurationKeywords(object _input_database, object _in_file)
        {
            this._input_database = _input_database;
            this._in_file = _in_file;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Import Geodatabase Configuration Keywords";

        public override string CallName => "management.ImportGeodatabaseConfigurationKeywords";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_input_database, _in_file, _out_workspace];

        /// <summary>
        /// <para>Input Database Connection</para>
        /// <para>The connection file for the enterprise geodatabase to which you want to import the configuration file. You must connect as the geodatabase administrator.</para>
        /// <para>要将配置文件导入到的企业级地理数据库的连接文件。您必须以地理数据库管理员身份进行连接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_database { get; set; }


        /// <summary>
        /// <para>Input File</para>
        /// <para>The path to and name of the ASCII text file containing configuration keywords, parameters, and values to import.</para>
        /// <para>包含要导入的配置关键字、参数和值的 ASCII 文本文件的路径和名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_file { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public ImportGeodatabaseConfigurationKeywords SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}